package com.lsc.record.core.entity;

import com.lsc.record.core.listener.BaseEntityInsertListener;
import com.lsc.record.core.listener.BaseEntityUpdateListener;
import com.mybatisflex.annotation.RelationOneToOne;
import com.mybatisflex.annotation.Table;

@Table(value="dm_form_item",onInsert = BaseEntityInsertListener.class,onUpdate = BaseEntityUpdateListener.class)
public class DmFormItem extends BaseEntity {
	private String formId;
	
	private String label;
	
	@RelationOneToOne(selfField = "formId",targetField = "id")
	private DmForm form;
	
	private Integer viewPosi;
	
	private Integer sortIndex;
	
	private Boolean isRequired;

	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public DmForm getForm() {
		return form;
	}

	public void setForm(DmForm form) {
		this.form = form;
	}

	public Integer getViewPosi() {
		return viewPosi;
	}

	public void setViewPosi(Integer viewPosi) {
		this.viewPosi = viewPosi;
	}

	public Integer getSortIndex() {
		return sortIndex;
	}

	public void setSortIndex(Integer sortIndex) {
		this.sortIndex = sortIndex;
	}

	public Boolean getIsRequired() {
		return isRequired;
	}

	public void setIsRequired(Boolean isRequired) {
		this.isRequired = isRequired;
	}
	
}
